//
//  DetailViewController.m
//  08-UITableViewHomeWork
//
//  Created by 曹曹 on 16/7/25.
//  Copyright © 2016年 曹曹. All rights reserved.
//

#import "DetailViewController.h"

@interface DetailViewController ()

@end

@implementation DetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // 背景颜色
    self.view.backgroundColor = [UIColor whiteColor];
    // 背景图片
    UIImageView *imageView = [[UIImageView alloc] initWithFrame:self.view.bounds];
    imageView.image = [UIImage imageNamed:@"guidePage_03"];
    [self.view addSubview:imageView];
    // 左侧label
    UILabel *nameLeft = [[UILabel alloc] initWithFrame:CGRectMake(100, 170, 60, 44)];
    UILabel *ageLeft = [[UILabel alloc] initWithFrame:CGRectMake(100, 220, 60, 44)];
    UILabel *genderLeft = [[UILabel alloc] initWithFrame:CGRectMake(100, 270, 60, 44)];
    UILabel *phoneNumberLeft = [[UILabel alloc] initWithFrame:CGRectMake(100, 320, 60, 44)];
    // 右侧label
    UILabel *name = [[UILabel alloc] initWithFrame:CGRectMake(200, 170, 200, 44)];
    UILabel *age = [[UILabel alloc] initWithFrame:CGRectMake(200, 220, 200, 44)];
    UILabel *gender = [[UILabel alloc] initWithFrame:CGRectMake(200, 270, 200, 44)];
    UILabel *phoneNumber = [[UILabel alloc] initWithFrame:CGRectMake(200, 320, 200, 44)];
    [self.view addSubview:nameLeft];
    [self.view addSubview:ageLeft];
    [self.view addSubview:genderLeft];
    [self.view addSubview:phoneNumberLeft];
    nameLeft.text = @"姓名:";
    ageLeft.text = @"年龄:";
    genderLeft.text = @"性别:";
    phoneNumberLeft.text = @"电话:";
    [self.view addSubview:name];
    [self.view addSubview:age];
    [self.view addSubview:gender];
    [self.view addSubview:phoneNumber];
    // 接收属性带过来的值
    name.text = _name;
    age.text = _age;
    gender.text = _gender;
    phoneNumber.text = _phoneNumber;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
